package com.xzz.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class SmsCodeDto {
    //手机号码
    @Pattern(message = "电话格式不正确！", regexp = "^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\d{8}$")
    private String phone;
    //图形验证码
    @NotNull
    private String imageCode;
    //图形验证码的key
    private String imageCodeKey;
}